home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_08
/
2n08016a
< prev
next >
Wrap
Text File
|
1991-06-16
|
451b
|
20 lines
#define INCL_WIN
#include <os2.h>
#include "form.h"
HAB hab; /* global accessed during forms auto-initialization */
main()
{
HAB _hab = hab = WinInitialize( 0 );
HMQ hmsgq = WinCreateMsgQueue( hab, DEFAULT_QUEUE_SIZE );
QMSG qmsg;
if (FormLoad( HWND_DESKTOP, HWND_DESKTOP, wpForm, 0, 1, 0L ))
while(WinGetMsg( _hab, &qmsg, 0L, 0, 0 ))
WinDispatchMsg( _hab, &qmsg );
return 0;
}
/*end*/